#EXEC_PROGRAM(${CMAKE_SOURCE_DIR}/build/bin/tolua++.exe 
#	${CMAKE_SOURCE_DIR}/linkermod 
#	ARGS mytolua.pkg -o toluainterfacexx.cpp
#	)
message(source_directory: ${CMAKE_SOURCE_DIR})
#EXEC_PROGRAM(dir)
AUX_SOURCE_DIRECTORY(. LINKERMOD_SRCS)
INCLUDE_DIRECTORIES(../toluapp)
ADD_LIBRARY(linkermod SHARED ${LINKERMOD_SRCS})
TARGET_LINK_LIBRARIES(linkermod toluapp luastatic)
IF(WIN32)
SET_TARGET_PROPERTIES(linkermod PROPERTIES OUTPUT_NAME "linkermod")
ENDIF(WIN32)

